package com.lvwenguo.model;

import java.io.Serializable;
//模拟销售实体类
public class SaleData implements Serializable {
private int id;
    private String product_bar_code;//商品条形码
    private String product_name;//商品名称
    private double sale_price; //销售价格
    private String sale_date;//销售时间
    private int sale_count;//销售数量
    private double purchase_price;//进货单价
    private int stock_count;//库存数量
    private double sale_amount;//销售金额

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getProduct_bar_code() {
        return product_bar_code;
    }

    public void setProduct_bar_code(String product_bar_code) {
        this.product_bar_code = product_bar_code;
    }

    public double getSale_price() {
        return sale_price;
    }

    public void setSale_price(double sale_price) {
        this.sale_price = sale_price;
    }

    public String getSale_date() {
        return sale_date;
    }

    public void setSale_date(String sale_date) {
        this.sale_date = sale_date;
    }

    public int getSale_count() {
        return sale_count;
    }

    public void setSale_count(int sale_count) {
        this.sale_count = sale_count;
    }

    public double getPurchase_price() {
        return purchase_price;
    }

    public void setPurchase_price(double purchase_price) {
        this.purchase_price = purchase_price;
    }

    public int getStock_count() {
        return stock_count;
    }

    public void setStock_count(int stock_count) {
        this.stock_count = stock_count;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public double getSale_amount() {
        return sale_amount;
    }

    public void setSale_amount(double sale_amount) {
        this.sale_amount = sale_amount;
    }

    @Override
    public String toString() {
        return "SaleData{" +
                "id=" + id +
                ", product_bar_code='" + product_bar_code + '\'' +
                ", product_name='" + product_name + '\'' +
                ", sale_price=" + sale_price +
                ", sale_date='" + sale_date + '\'' +
                ", sale_count=" + sale_count +
                ", purchase_price=" + purchase_price +
                ", stock_count=" + stock_count +
                ", sale_amount=" + sale_amount +
                '}';
    }
}
